package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 销售换货申请单产品规格表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exchange_request_spec")
public class ExchangeRequestSpec implements Serializable {
    /**
     * 销售换货申请单产品规格id
     */
    @TableId(value = "exchange_request_spec_no", type = IdType.INPUT)
    private Integer exchangeRequestSpecNo;

    /**
     * 产品规格id
     */
    @TableField(value = "goods_spec_id")
    private Integer goodsSpecId;

    /**
     * 销售换货申请单id
     */
    @TableField(value = "exchange_request_id")
    private Integer exchangeRequestId;

    /**
     * 数量
     */
    @TableField(value = "`number`")
    private Integer number;

    /**
     * 仓库id
     */
    @TableField(value = "store_id")
    private Integer storeId;

    /**
     * 库存
     */
    @TableField(value = "inventory")
    private Integer inventory;

    /**
     * 单价
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 折扣
     */
    @TableField(value = "discount")
    private BigDecimal discount;

    /**
     * 折扣单价
     */
    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    /**
     * 折扣总价
     */
    @TableField(value = "discount_total_price")
    private BigDecimal discountTotalPrice;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    private static final long serialVersionUID = 1L;
}